package com.example.onehundreddoor;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Door {
    private int order;
    private boolean isOpen;

    public void changeState(){
        isOpen = !isOpen;
    }

}
